var util = require('../../utils/util.js');
var qcloud = require('../../vendor/wafer2-client-sdk/index')
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    getpaydetailList: [],
    status:'mounted'
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    util.post(app.api.myPayDetail, {openid: app.globalData.openid}, function (res) {
          that.setData({
            getpaydetailList: res.data,
            totalPages: res.data.length,
            status:'end'
          });
    });
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
   
  }
})